PARAM_TEXT

Description

Passive element (does not respond to mouse or keyboard) that displays a parameter as formatted text. It is like a Text Widget except that the string to display is generated from the parameter attributes.

Common Attributes

See text display common attributes.

Specific Attributes
Name Value Type Default Value Description Comment V.

param_id

Parameter identifier

empty

Identifier of the parameter to display.

This value is mandatory. Param controls cannot not refer to a an output param since output parameters are read-only.

1.0

No

content

string with parameter fields

'{value} {unit}'

Content to display


1.0

value_format

parameter value formatting

' .1'

Format of the 'value' field

The default format shows the value with one character for the decimal part, and positive values start with a blank.

1.0

value_suffix

use suffix for value formatting

'false'

If the value is too small or too big, the system will use a suffix for the value, such as 'k' for kilo, 'M' for Mega, or 'm' for 'milli'.


1.1

significant_digits

positive integer value

0

Number of significant digits to display, forcing the system to perform rounding.

With significant_digits set to 2, "45678" will be displayed as 46000, and "0.654" will be displayed as 0.65. Set this parameter to 0 to disable rounding.

1.7

Examples

Most examples of the Text Display Widgets chapter are applicable here. We will only show the specificities of the param text widget here.

<?xml version="1.0" encoding="utf-8" ?>
<SKIN language_version="1.0" background_color="#000000" font_face="Lucida Console" text_color="#ffffff"
   font_quality="cleartype" font_height="12" h_margin="2" v_margin="10">
   <PARAM_TEXT param_id="dsp.input1" content="{value} {unit}" value_format="+03.0" />
</SKIN>
(the pictures show the widget for different values of the parameter)
<?xml version="1.0" encoding="utf-8" ?>
<SKIN language_version="1.0" background_color="#000000" font_face="Lucida Console" text_color="#ffffff"
   font_quality="cleartype" font_height="12" h_margin="2" v_margin="10">
   <PARAM_TEXT param_id="dsp.input1" content="{value} {unit}" value_format="+3.0" />
</SKIN>
(the pictures show the widget for different values of the parameter)
<?xml version="1.0" encoding="utf-8" ?>
<SKIN language_version="1.0" background_color="#000000" font_face="Lucida Console" text_color="#ffffff"
   font_quality="cleartype" font_height="12" h_margin="2" v_margin="10">
   <PARAM_TEXT param_id="dsp.input1" content="{value} {unit}" value_format=" 3.0" />
</SKIN>
(the pictures show the widget for different values of the parameter)

<?xml version="1.0" encoding="utf-8" ?>
<SKIN language_version="1.0" background_color="#000000" font_face="Lucida Console" text_color="#ffffff"
   font_quality="cleartype" font_height="12" h_margin="2" v_margin="10">
   <PARAM_TEXT param_id="dsp.input1" content="{value} {unit}" value_format=" 5.1" />
</SKIN>
(the pictures show the widget for different values of the parameter)